<?php

namespace App\Http\Requests\Api;

class InterviewRequest extends ApiRequest
{
    public function rules()
    {
        return [
            'resume_id' => 'bail|required|integer',
            'job_id' => 'bail|required|integer',
            'interview_time' => 'bail|required|after:now',
        ];
    }

    public function attributes()
    {
        return [
            'resume_id'=>'简历',
            'job_id'=>'职位',
            'interview_time'=>'面试时间',
        ];
    }

    public function messages()
    {
        return array_merge(parent::messages(),[
            'interview_time.after'=>':attribute不能小于现在',
        ]);
    }
}
